﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace SQLCE.Areas.User.Controllers
{
    public class BaseController : Controller
    {

        protected new ViewResult View(string viewName, object model)
        {
            ViewData.Model = model;
            return new ViewResult
            {
                ViewName = viewName,
                MasterName = "_Layout",
                ViewData = ViewData,
                TempData = TempData
            };
        }


        /// <summary>
        /// 返回默认空视图
        /// </summary>
        /// <returns></returns>
        protected new ViewResult View()
        {
            return View(null, null);
        }
    }
}